Learning .NET High-performance Programming by 2015
This simple implementation gives us the ability to understand how EAP works. The pattern asks us to add some naming conventions such as the syntax Async at the end of the method or the syntax Completed for the acknowledgement event.
The pattern itself, in its pure version, is more verbose than how it was just seen. It also requires a specific Delegate declaration for each method (although all with the same sign), cancellation support, process state notification (the percentage or completion), and a busy indicator. It is at the discretion of the programmer whether to implement a pure pattern or a simplified one, as visible in the example just given.
The BackgroundWorker is a component that supports a full EAP with the ability to run in an asynchronous way and synchronize the UI access by itself (discussed later in this chapter in the Task UI synchronization section).